#ifndef PROTO_H__
#define PROTO_H__

#define KEYPATH "/etc/services"
#define PROJID 'a'

#define PATHSIZE 1024
#define DATASIZE 1024

enum 
{
	MSG_PATH = 1,
	MSG_DATA,
	MSG_EOT
};

struct path_st
{
	long type;
	char path[PATHSIZE];
};

struct data_st
{
	long type;
	char data[DATASIZE];
	int datalen;
};

struct eot_st
{
	long type;
};

union recv_data
{
	long type;
	struct path_st path;
	struct data_st data;
};

#endif
